/**
 * Package Name:cn.com.guodiantong.provider.user.controller
 * Date:2017年8月15日 上午9:26:31
 * Copyright (c) 2017 mr.luoxing@gmail.com Rights Reserved.
 *
 */

package cn.com.guodiantong.provider.user.controller;

import java.util.UUID;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import com.alibaba.dubbo.config.annotation.Reference;
import com.gdtnx.dubbo.system.api.user.domain.User;
import com.gdtnx.dubbo.system.api.user.service.IUserService;

import cn.com.guodiantong.common.api.annotation.Logger;
import cn.com.guodiantong.common.api.enums.LoggerEnum;
import cn.com.guodiantong.provider.user.service.UserService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;

/**
 * @ClassName: UserController.<br/>
 * @Description: TODO(...).<br/>
 *
 * @author Mr.Luoxing
 * @version 1.0.0
 */
@RestController
@RequestMapping("/user")
@Api("用户管理")
public class UserController {

	@Autowired
	UserService userService;
	

	@GetMapping("save")
	@ApiOperation(value = "用戶管理", notes = "新增用戶")
	@Logger(module = "用戶管理", note = "新增用戶", type = LoggerEnum.INSERT)
	public String save(String a) {
		userService.sayhello();
//		throw new RuntimeException();
		return "1212";
	}
	
}
